import type { BaseResponse } from "@/api/index.d";
import service from "@/utils/service";

export const useRuleRecordCreateApi = (
  data: any
): Promise<BaseResponse<any>> => {
  return service({
    url: `/v1/rating/record/create`,
    method: "POST",
    data,
  });
};
export const useRuleRecordDeleteApi = (
  data: any
): Promise<BaseResponse<any>> => {
  return service({
    url: `/v1/rating/record/delete`,
    method: "POST",
    data,
  });
};
export const useRuleRecordListApi = (data: any): Promise<BaseResponse<any>> => {
  return service({
    url: `/v1/rating/record/list`,
    method: "POST",
    data,
  });
};
export const useRuleRecordPageApi = (data: any): Promise<BaseResponse<any>> => {
  return service({
    url: `/v1/rating/record/page`,
    method: "POST",
    data,
  });
};
export const useRuleRecordUpdateApi = (
  data: any
): Promise<BaseResponse<any>> => {
  return service({
    url: `/v1/rating/record/update`,
    method: "POST",
    data,
  });
};
